//
//  MenuItemController.m
//  Mounter
//
//  Created by Marco Nätlitz on 01.08.10.
//  Copyright 2010 Chimpansoft. All rights reserved.
//

#import "MenuItemController.h"


@implementation MenuItemController

@synthesize labelText;

- (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil dataDictionary:(NSDictionary *)dict {
	if(self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
		itemInfo = dict;
		labelText = [itemInfo objectForKey:@"displayName"];
		[imageView setImage:[itemInfo objectForKey:@"icon"]];
	}
	return self;
}

- (IBAction) ejectButtonClicked: (id)sender {
	NSLog(@"Eject button was clicked");
}

@end
